QuickTime 3 Reference

| Previous | Chapter Contents | Chapter Top |

Retrieving Image Data

This function is used by format-specific grapics importer components to read data from the data source. It is implemented by the generic graphics importer.

GraphicsImportReadData

Reads image data.

extern pascal ComponentResult GraphicsImportReadData (
            GraphicsImportComponent ci,
            void *dataPtr,
            unsigned long dataOffset,
            unsigned long dataSize);

ci     Specifies the component instance that identifies your connection to the graphics importer component.

dataPtr     A pointer to a memory block to receive the data.

dataOffset     The offset of the image data within the data reference. The function begins reading image data from this offset.

dataSize     The number of bytes of image data to read.

DISCUSSION

GraphicsImportReadData communicates with the appropriate data handler to retrieve image data. Typically, only developers of graphics importer components will need to use this function. This function should always be used to retrieve data from the data source, rather than reading it directly.

RESULT CODES
noErr
0 No error
paramErr
-50 Invalid parameter specified
memFullErr
-108 Not enough memory available

 


© 1998 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top |